package com.tjbklx1.pattern2.chap33.c02_facade;

import java.util.Random;

/**
 * 绩效
 * @author Administrator
 *
 */
public class Performance {
	// 基本工资
	private BasicSalary salary = new BasicSalary();

	// 绩效奖励
	public int getPerformanceValue() {
		// 随机绩效
		int perf = (new Random()).nextInt(100);
		return salary.getBasicSalary() * perf / 100;
	}
}